package com.twu.biblioteca;

/**
 * Created with IntelliJ IDEA.
 * User: alacerda
 * Date: 10/8/13
 * Time: 11:58 AM
 * To change this template use File | Settings | File Templates.
 */
public class Book {

    private String title;

    private String author;

    private boolean available = true;

    public Book(String title, String author) {
        this.title = title;
        this.author = author;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getAuthor() {
        return author;
    }

    public void setAuthor(String author) {
        this.author = author;
    }

    public boolean isAvailable() {
        return available;
    }

    public void setAvailable(boolean available) {
        this.available = available;
    }

    @Override
    public String toString() {
        return title + " - " + author;
    }
}
